<?php
class Control_Account extends Control {
	function getSign($dataArr) {
		ksort($dataArr);
		// 签名
		$signStr = '';
		foreach ($dataArr as $key => $val) {
			$val = urlencode($val);
			if ($signStr) {
				$signStr .= "&{$key}={$val}";
			} else {
				$signStr .= "{$key}={$val}";
			}
		}
		
		$key = MooConfig::get('account.key');
		
		$sign = md5($signStr . $key);
		
		return $sign;
	}
}